<?php

class Allnews_Controller
{
	public $template = 'allnews';
	
	public function main(array $getVars)
	{
		$allNewsModel = new Allnews_Model;
		
		//get an article
		$article = $allNewsModel->get_article();
		
		//create a new view and pass it our template
		$view = new View_Model($this->template);
		
		//assign article data to view
		$view->assign('article' , $article);
	}
}